﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace RemoteImaging.LicensePlate
{
    public partial class FormTestVehicle : Form
    {
        public FormTestVehicle()
        {
            InitializeComponent();
        }

        private void button1_Click(object sender, EventArgs e)
        {
            try
            {
                var isSuspect = SuspectCarService.IsSuspectCar(hphm.Text);
                MessageBox.Show(isSuspect ? "是疑似盗抢车辆" : "非盗抢车辆");
            }
            catch (Exception ex)
            {
                MessageBox.Show(ex.ToString());
            }
        }

        private void button2_Click(object sender, EventArgs e)
        {
            try
            {
                SuspectCarService.SendSms(sms.Text);
                MessageBox.Show("发送成功");
            }
            catch (Exception ex)
            {
                MessageBox.Show(ex.ToString());
            }
        }
    }
}
